//
//  DKMainSigleInfoView.m
//  DanKU
//
//  Created by 吴斌 on 2023/11/23.
//

#import "DKMainSigleInfoView.h"
@interface DKMainSigleInfoView()
@property (nonatomic, strong)UILabel * dk_MainSigleInfoHeadLab;
@property (nonatomic, strong)UILabel * dk_MainSigleInfoLab;
@end
@implementation DKMainSigleInfoView
-(instancetype)init{
    if(self == [super init]){
        self.backgroundColor = UIColor.clearColor;
        [self dk_addSubView];
    }
    return self;
}
- (void)dk_addSubView{
    UIImageView* dk_MainSigleInfoImgView = [[UIImageView alloc] init];
    dk_MainSigleInfoImgView.userInteractionEnabled = YES;
    dk_MainSigleInfoImgView.image = DK_GetImage(@"dk_MainSigleInfoBg");
    [self addSubview:dk_MainSigleInfoImgView];
    [dk_MainSigleInfoImgView mas_makeConstraints:^(MASConstraintMaker *make) {
        make.edges.equalTo(@(DK_IsWidthScale(0)));
    }];
    self.dk_MainSigleInfoHeadLab = [[UILabel alloc] init];
    self.dk_MainSigleInfoHeadLab.textColor = DK_Hex(@"#5D7B9B");
    self.dk_MainSigleInfoHeadLab.font = DK_FONT_Regular(16);
    [self addSubview:self.dk_MainSigleInfoHeadLab];
    [self.dk_MainSigleInfoHeadLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DK_IsWidthScale(30)));
        make.top.equalTo(@(DK_IsWidthScale(30)));
        make.height.equalTo(@(DK_IsWidthScale(22)));
    }];
    self.dk_MainSigleInfoLab = [[UILabel alloc] init];
    self.dk_MainSigleInfoLab.textColor = DK_Hex(@"#5D7B9B");
    self.dk_MainSigleInfoLab.font = DK_FONT_Medium(20);
    [self addSubview:self.dk_MainSigleInfoLab];
    [self.dk_MainSigleInfoLab mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(@(DK_IsWidthScale(30)));
        make.bottom.equalTo(@(-DK_IsWidthScale(30)));
        make.height.equalTo(@(DK_IsWidthScale(28)));
    }];
}
-(void)setSigleInfoHead:(NSString *)sigleInfoHead{
    _sigleInfoHead = sigleInfoHead;
    self.dk_MainSigleInfoHeadLab.text = _sigleInfoHead;
}
-(void)setSigleInfo:(NSString *)sigleInfo{
    _sigleInfo = sigleInfo;
    self.dk_MainSigleInfoLab.text = _sigleInfo;
}
@end
